package com.desktopmng.core;

import javax.sql.DataSource;

import org.springframework.context.ApplicationContext;

public class ServiceManager {

	private static ApplicationContext getContext() {
		return JFossContext.getInstance().getContext();
	}

	public static Object getBean(String serviceid) {
		return getContext().getBean(serviceid);
	}

	public static DataSource getDataSource() {
		return (DataSource) getContext().getBean("dataSource");
	}
}
